{if $moudles}
{if $enable_modules}
<div class="page-header">
	<h4><i class="fa fa-cubes"></i> 已启用的模块</h4>
</div>
<div class="panel panel-default row">
	<div class="table-responsive panel-body">
	<table class="table">
		<tr>
			<th style="width:10%"></th>
			<th style="width:15%">模块名称</th>
			<th style="width:10%;">标识</th>
			<th style="width:40%">描述</th>
		</tr>
		{loop $enable_modules $key $row}
		<tr>
			<td>
				{if file_exists($buildinpath.$key.'/icon.jpg')}
				<img alt="{$row['title']}" src="../framework/builtin/{$key}/icon.jpg" class="img-rounded">
				{elseif file_exists($path.$key.'/icon.jpg')}
				<img alt="{$row['title']}" src="../addons/{$key}/icon.jpg" width="48" height="48" class="img-rounded">
				{else}
				<img alt="{$row['title']}" src="./resource/images/nopic-small.jpg" width="48" height="48" class="img-rounded">
				{/if}
			</td>
			<td>
				{$row['title']}
				{if $row['official']}
				<i class="official"><img src="resource/images/module/official.png"/></i>
				{/if}
			</td>
			<td>
				{$row['name']}
			</td>
			<td>
				{$row['ability']}
			</td>
			<td>
				
			</td>
		</tr>
		{/loop}
	</table>
</div>
</div>
{/if}
{if $unenable_modules}
<div class="page-header">
	<h4><i class="fa fa-cubes"></i> 未启用的模块</h4>
</div>
<div class="panel panel-default row">
	<div class="table-responsive panel-body">
	<table class="table">
		<tr>
			<th style="width:10%"></th>
			<th style="width:15%">模块名称</th>
			<th style="width:10%;">标识</th>
			<th style="width:40%">描述</th>
			<th>
				
			</th>
		</tr>
		{loop $unenable_modules $key $row}
		<tr>
			<td>
				{if file_exists($path.$key.'/icon.jpg')}
				<img alt="{$row['title']}" src="../addons/{$key}/icon.jpg" width="48" height="48" class="img-rounded">
				{else}
				<img alt="{$row['title']}" src="./resource/images/nopic-small.jpg" width="48" height="48" class="img-rounded">
				{/if}
			</td>
			<td>
				{$row['title']}
				{if $row['official']}
				<i class="official"><img src="resource/images/module/official.png"/></i>
				{/if}
			</td>
			<td>
				{$row['name']}
			</td>
			<td>
				{$row['ability']}
			</td>
			<td>
				&nbsp;
			</td>
		</tr>
		{/loop}
	</table>
	</div>
</div>
{/if}
{else}
	<div class="page-header">
		<h4><i class="fa fa-plane"></i> 核心功能设置</h4>
	</div>
	<div class="shortcut clearfix">
		{if $entries['cover']}
			{loop $entries['cover'] $cover}
			<a href="{$cover['url']}" title="{$cover['title']}">
				<i class="fa fa-external-link-square"></i>
				<span>{$cover['title']}</span>
			</a>
			{/loop}
		{/if}
		{if $module['isrulefields']}
			<a href="{php echo url('platform/reply', array('m' => $m))}">
				<i class="fa fa-comments"></i>
				<span>回复规则列表</span>
			</a>
		{/if}
		{if $entries['home'] || $entries['profile'] || $entries['shortcut']}
			{if $entries['home']}
				<a href="{php echo url('site/nav/home', array('m' => $m))}">
					<i class="fa fa-home"></i>
					<span>微站首页导航</span>
				</a>
			{/if}
			{if $entries['profile']}
				<a href="{php echo url('site/nav/profile', array('m' => $m))}">
					<i class="fa fa-user"></i>
					<span>个人中心导航</span>
				</a>
			{/if}
			{if $entries['shortcut']}
				<a href="{php echo url('site/nav/shortcut', array('m' => $m))}">
					<i class="fa fa-plane"></i>
					<span>快捷菜单</span>
				</a>
			{/if}
		{/if}
		{if $module['settings']}
			<a href="{url 'profile/module/setting' array('m' => $m)}">
				<i class="fa fa-cog"></i>
				<span title="参数设置">参数设置</span>
			</a>
		{/if}
	</div>
	{if empty($module['issolution'])}
	{if $entries['menu']}
	<div class="page-header">
		<h4><i class="fa fa-plane"></i> 业务功能菜单</h4>
	</div>
	<div class="shortcut clearfix">
		{loop $entries['menu'] $menu}
		<a href="{$menu['url']}" title="{$menu['title']}">
			<i class="fa fa-puzzle-piece"></i>
			<span>{$menu['title']}</span>
		</a>
		{/loop}
	</div>
	{/if}
	{else}
	<div class="page-header">
		<h4><i class="fa fa-plane"></i> 功能分权 (仅限行业模块)</h4>
	</div>
	<div class="shortcut clearfix">
		<a href="{url 'profile/worker' array('m' => $m, 'reference' => 'solution')}">
			<i class="fa fa-users"></i>
			<span>设置操作用户</span>
		</a>
		<a href="{url 'home/welcome/solution' array('m' => $m)}">
			<i class="fa fa-cogs"></i>
			<span>进入管理后台</span>
		</a>
	</div>
	{/if}
{/if}
